import request from '@/utils/request'

// 查询资产档案列表
export function listAssetCard(query) {
  return request({
    url: '/business/base/assetCard/list',
    method: 'get',
    params: query
  })
}

// 查询资产档案详细
export function getAssetCard(id) {
  return request({
    url: '/business/base/assetCard/' + id,
    method: 'get'
  })
}

// 新增资产档案
export function addAssetCard(data) {
  return request({
    url: '/business/base/assetCard/insert',
    method: 'post',
    data: data
  })
}

// 修改资产档案
export function updateAssetCard(data) {
  return request({
    url: '/business/base/assetCard/update',
    method: 'put',
    data: data
  })
}

// 删除资产档案
export function delAssetCard(id) {
  return request({
    url: '/business/base/assetCard/delete/' + id,
    method: 'delete'
  })
}
